home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-02 / pas_all.zip / TI443.ASC < prev    next >
Text File  |  1992-08-12  |  3KB  |  133 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.   PRODUCT  :  TURBO PASCAL EDITOR TOOLBOX            NUMBER  :  443
  9.   VERSION  :  4.0
  10.        OS  :  MS-DOS, PC-DOS
  11.      DATE  :  SEPTEMBER 20, 1988                       PAGE  :  1/2
  12.  
  13.     TITLE  :  MICROSTAR CRITICAL ERROR HANDLER CORRECTIONS
  14.  
  15.  
  16.  
  17.  
  18.   This handout addresses a problem reported by users  of  the Turbo
  19.   Pascal Editor Toolbox version 4.0.
  20.  
  21.   Users  have  found  that  MicroStar  cannot  recover  from a  DOS
  22.   Critical Error.  DOS Critical  Errors  occur  when  attempting to
  23.   write or read  a  disk  file  with  the disk door open, the drive
  24.   empty, or the printer  out  of paper, etc.  MicroStar reports the
  25.   Critical E
  26.  
  27.   The problem lies with the  Interrupt 24 Handler (the DOS Critical
  28.   Error Handler) implemented within MicroStar;  its  source  may be
  29.   found in the file INT24.ASM of the MicroStar source  code.    The
  30.   INT24.ASM correctly identifies Critical Errors but does not rese
  31.  
  32.      1.   Load INT24.ASM  into  an  ASCII  editor  (Turbo  Pascal's
  33.           editor will do).
  34.  
  35.      2.   Find Line 68 which should read as follows:
  36.  
  37.           MOV  CS:Int24ErrCode,0  ;Reset Int24ErrCode to 0
  38.  
  39.      3.   Replace this text with the following line.
  40.  
  41.           MOV  CS:Int24Err,0      ;Reset Int24Err to 0
  42.  
  43.      4.   Use the Microsoft or a compatible  assembler  to assemble
  44.           the code to an  object  format  (.OBJ). This must replace
  45.           the INT24.OBJ supplied with the distribution disks.
  46.  
  47.      5.   Set the compiler destination to disk (Compile/Destination
  48.           option). Load  MS.PAS into the editor and perform a build
  49.           (Compile/Build  option)  on  the entire application. Make
  50.           sure  the  entire   MicroStar  source  is  available  for
  51.           recompilation.
  52.  
  53.   For  those  without  an  assembler,  the  following  Turbo Pascal
  54.   program corrects the unmodified MicroStar  EXE  file.    From the
  55.   directory containing MicroStar, enter the following lines of code
  56.   into the Turbo Pascal editor and run from either memory or disk.
  57.  
  58.   program ChMS;
  59.  
  60.   var
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.   PRODUCT  :  TURBO PASCAL EDITOR TOOLBOX            NUMBER  :  443
  75.   VERSION  :  4.0
  76.        OS  :  MS-DOS, PC-DOS
  77.      DATE  :  SEPTEMBER 20, 1988                       PAGE  :  2/2
  78.  
  79.     TITLE  :  MICROSTAR CRITICAL ERROR HANDLER CORRECTIONS
  80.  
  81.  
  82.  
  83.  
  84.     f : file of byte;
  85.     b : byte;
  86.  
  87.   begin
  88.  
  89.   Assign(f,'MS.EXE');
  90.   reset(f);
  91.  
  92.   seek( f, 129626);   b := 30;   write( f, b);
  93.   seek( f, 154257);   b := 101;  write( f, b);
  94.   seek( f, 154305);   b := 4;    write( f, b);
  95.   seek( f, 154401);   b := 103;  write( f, b);
  96.   seek( f, 154431);   b := 115;  write( f, b);
  97.   seek( f, 154701);   b := 108;  write( f, b);
  98.   seek( f, 154827);   b := 108;  write( f, b);
  99.  
  100.   close(f);
  101.  
  102.   end.
  103.  
  104.   DISCLAIMER: You  have the right to use this technical information
  105.   subject to the terms  of  the  No-Nonsense License Statement that
  106.   you received with  the  Borland product to which this information
  107.   pertains.
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.